﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XinYi.CroodedShowFront.DAL;
using XinYi.CrookedShowMode;

namespace XinYi.CroodedShowFront.BLL
{
    public class PageService
    {
        PageRepository pageRepository = new PageRepository();
        /// <summary>
        /// 查询商品对象
        /// </summary>
        /// <param name="productName"></param>
        /// <returns></returns>
        #region 查询商品对象
        public Product_Spu product(int Id)
        {
            return pageRepository.product(Id);
        }
        #endregion
        /// <summary>
        /// 查询规格
        /// </summary>
        /// <param name="productName"></param>
        /// <returns></returns>
        #region 查询规格
        public List<Spec> Spec(int Id)
        {
            return PageRepository.Spec(Id);
        }
        #endregion
        /// <summary>
        /// 规格值
        /// </summary>
        /// <param name="productName"></param>
        /// <returns></returns>
        #region 规格值
        public List<Spec_Value> Spec_Value(int Id)
        {
            return pageRepository.Spec_Value(Id);
        }
        #endregion
        /// <summary>
        /// 查询商品 Product_Sku表库存
        /// </summary>
        /// <param name="productName"></param>
        /// <returns></returns>
        #region Product_Sku表库存
        public int Product_Sku(int Id)
        {
            return pageRepository.Product_Sku(Id);
        }
        #endregion
        /// <summary>
        /// 查询商品评论
        /// </summary>
        /// <param name="productName"></param>
        /// <returns></returns>
        #region 查询商品评论
        public List<Product_Comment> Product_Comment(int Id)
        {
            return pageRepository.Product_Comment(Id);
        }
        #endregion
        #region 查询商品图片
        public List<Pic> Pics(int Id)
        {
            return pageRepository.Pics(Id);
        }
        #endregion
        #region 分类
        public List<Category> Categorys(Product_Spu product_Spu)
        {
            return pageRepository.Categorys(product_Spu);
        }
        #endregion
    }
}
